<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>
        拜访详情
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../../css/main.css" media="all">
    <link rel="stylesheet" href="../../../../lib/layui/css/layui_2.5.7.css">
    <script type="text/javascript" src="../../../../lib/loading/okLoading.js"></script>
    <link rel="stylesheet" href="../../../../css/bootstrap.css">
    <link rel="stylesheet" href="../../../../lib/layui/css/layui_2.5.7.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .layui-table-page select {
            height: 22px;
        }

        /* layui-table 表格内容允许换行 */
        .layui-table-cell {
            height: auto;
        }

    </style>
</head>

<body>
    <div class="x-body" id="app" >
        <form class="layui-form x-center">
            <span style="font-weight:bold">沟通内容</span>
            <div class="layui-form-item layui-form-text" style="margin-top: 8px;">
                <div class="layui-input-block">
                    <textarea name="memo" class="layui-textarea" readonly="readonly"></textarea>
                </div>
            </div>
        </form>
    </div>
</body>


<script type="text/javascript" src="../../../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../../../js/myAjax.js"></script>
<script type="text/javascript" src="../../../../js/pub.js"></script>
<script type="text/javascript" src="../../../../lib/layui/layui2.5.7.js"></script>
<script type="text/javascript" src="../../../../js/vue.min.js"></script>
<!-- <script src="lib/layui/layui.js" charset="utf-8"></script> -->
<script src="../../../../js/x-layui.js" charset="utf-8"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>


<script>

    var neirong = getQueryVariable("contractId");
    layui.use('form', function () {
        $ = layui.jquery;//jquery
        var form = layui.form;
        okLoading.close($);

        let request = {
            url: 'xa/contractInfo/findContractInfo',
            data: {
                id:contractId
            },
        };
        sendRequest(request, (data) => {
            if (data.code === 0) {
                var contractTypeName = data.data.contractType === 1 ?"销售合同":"工程合同";
                // $("#contractType").append("<option value=\""+data.data.contractType+"\" selected>"+contractTypeName+"</option>");
                // $("#projectId").append("<option value=\""+data.data.projectId+"\" selected>"+data.data.projectName+"</option>");
                // getPartyALinkmanId(data.data.projectId,data.data.partyALinkmanId)
                // getPartyBLinkmanId(data.data.partyBLinkmanId)
                // getProject(data.data.projectId,data.data.contractType);
                form.val('updateInfo', {

                    "contractNum": data.data.contractNum,
                    "contractType": contractTypeName,
                    "contractTotalAmount":data.data.contractTotalAmount,
                    "projectId":data.data.projectName,
                    "partyALinkmanId":data.data.partyALinkmanName,
                    "partyBLinkmanId":data.data.partyBLinkmanName,
                    "signTime":data.data.signTime,
                    "contractCycle":data.data.contractCycle,
                    "memo":data.data.memo
                });
            } else {
                layer.alert(data.msg, {
                    icon: 2
                })
            }
        });

    });

</script>


</html>
